package com.xuecheng.content.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xuecheng.content.model.po.TeachplanMedia;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 */
public interface TeachplanMediaMapper extends BaseMapper<TeachplanMedia> {

    @Delete("delete from  teachplan_media where teachplan_id=#{teachplanId}")
    void deleteByTeahplanId(Long teachplanId);

    @Delete("delete from teachplan_media where course_id=#{courseId}")
    void deleteByCourseId(Long courseId);

    @Delete("delete from  teachplan_media where media_id=#{mediaId}")
    void deleteByMediaId(String mediaId);
}
